package hibernate;

import java.util.HashSet;
import java.util.Set;

public class Teacher {
	private String name;
	private Integer t_ID;
	private String pwd;
	
	private Set<Student> students = new HashSet<>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getT_ID() {
		return t_ID;
	}
	public void setT_ID(Integer t_ID) {
		this.t_ID = t_ID;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Teacher(String name, String pwd) {
		super();
		this.name = name;
		this.pwd = pwd;
	}
	public Teacher() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Set<Student> getStudents() {
		return students;
	}
	public void setStudents(Set<Student> students) {
		this.students = students;
	}
	@Override
	public String toString() {
		return "Teacher [name=" + name + ", t_ID=" + t_ID + ", pwd=" + pwd + "]";
	}
	
	

}
